home *** CD-ROM | disk | FTP | other *** search
- Path: news.polymtl.ca!news
- From: Pierre Ferland <pierre@meca.polymtl.ca>
- Newsgroups: comp.lang.c++
- Subject: Re: gnu c++
- Date: Thu, 04 Apr 1996 07:47:13 -0500
- Organization: Center for Applied Research on Polymers
- Message-ID: <3163C4D1.41C6@meca.polymtl.ca>
- References: <3162F6C7.4372E97A@arbornet.org>
- NNTP-Posting-Host: crasp.meca.polymtl.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (X11; I; AIX 2)
-
- anthony wrote:
- >
- > does anyone know if g++ does templates? i've heard some people say they
- > had problems, but never heard any answers.
- >
- > thanks for any comments.
- > anthony
-
-
- Well, it seems that g++ actually implements templates.
- You face the choice of the instantiation model, and within
- the solutions proposed you'll find #pragmas and compiling
- options (I like none of them cause we use different compilers
- even on a same platform, and this tends to complexify both sources
- and makefiles).
-
- Some bugs have been reported. You may check the following URL
- http://www.cygnus.com/misc/g++FAQ.html#SEC41
-
- The one that's precisely driving me mad is the illegal
- instantiation when the compiler meets a pointer to a template
- instance.
-
- They say that the next release (2.8) will implement automatic
- instantiation and correct some non standard behaviors.
-
- If you need more doc I can send you a postscript file
- of the ``templates'' section in gcc 2.7.2 manuals.
-
-
- Pierre Ferland
- RTMFLOT Project Manager
-